import request from "@/utils/request.js"

//轮播图数据
export function reqSliders(){
    return request({
        url:"/api/slider/getSliders",
        method:"get",
    })
}

//课程一级分类
export const reqFirstCategorys = () => {
    return request({
        url:"/api/course/category/getFirstCategorys",
        method:"get"
    })
}

//课程二级分类
export function reqSecondCategorys(categoryId){
    return request({
        url:"/api/course/category/getSecondCategorys",
        method:"get",
        params:categoryId
    })
}

//查询课程
export const reqSearchCourse = (data) => {
    return request({
        url:"/api/course/search",
        method:"post",
        data
    })
}